package com.blog.service.sys;
import java.util.List;
import java.util.Map;

import com.blog.common.util.jstree.Tree;
import com.blog.entity.sys.Role;
 

public interface RoleService {
	
		public List<Role> listRole(Integer userId);
		
		Integer delectUserAndRole(Integer userIds);
		
		Tree<Role> listRoleTree();
		
		List<Role> selectRoleByUserId(Integer id);
		
		List<Role> listRoles(Map<String,Object> map);
		
		Integer saveRole(Role role);
		
		Integer updateRole(Role role);
		
		Role selectRoleByRoleId(Integer roleId);
		
		Integer delectRoleById(Integer roleId);
}
